package com.itheima.crm.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;


import com.itheima.crm.pojo.Application;



public interface ApplicationDao {

	public Integer ApplicationCount(Application application);

	// 结果集
	public List<Application> selectApplicationList(Application application);

	// 通过ID查询
	public Application selectApplicationById(Integer id);

	public void updateApplicationById(Application application);
	// 修改通过ID
	public void updateApproveById(Application application);

	// 通过ID 删除
	public void deleteApplication(Integer id);

	// 插入
	public void insertApplication(Application application);
	//通过员工工号查询业务
	public List<Application> selectApplicationByYGid(Integer ygid);
	//通过登录获得的员工工号查询员工个人业务
	public List<Application> selectMyApplication(Application application);
	
	public Integer myApplicationCount(Application application);
	//通过前台收到的用户和密码查询员工工号
	public Integer selectYGidBylogin(@Param("loginname")String loginname,@Param("loginpw")String loginpw);
 
	public List<Application> selectOrganizationApplication(Application application);
	
	public Integer OrganizationApplicationCount(Application application);
	
	public List<Application> selectMyAndOrganization(Application application);
	
	public Integer selectMyAndOrganizationCount(Application application);
	//查看会议申请记录
	public List<Application> selectHuiYi(Application application);
	
	public Integer ApplicationCountHuiYi(Application application);
	//修改会议状态  未办改为已办
	public void updateApplicationResult(Integer id);
	
	public  Integer CountMaxId();
 }
